<?php
class Api_Form_Image extends Zend_Form {
	public function __construct($options = null, $req = true) {
		parent::__construct ( $options );
		$this->setName ( 'upload' );
		$this->setAttrib ( 'enctype', 'multipart/form-data' );
		
		$file = new Zend_Form_Element_File ( 'img_src' );
		$file->setLabel ( 'Image: ' );
		$file->setRequired ( $req );
		
		$submit = new Zend_Form_Element_Submit ( 'submit' );
		$submit->setLabel ( 'Save' );
		
		$this->addElements ( array ($file, $submit ) );
	
	}
}